package ${dto.packageName};

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * ${tableClass.remark}
 * @author qi
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 * @TableName ${tableClass.tableName}
 */
@TableName(value ="${tableClass.tableName}")
@Data
public class ${dto.fileName} extends BaseDTO implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
<#list tableClass.allFields as field>
<#if field.fieldName=='id' || field.fieldName=='createdBy'|| field.fieldName=='createdTime'|| field.fieldName=='modifiedBy'|| field.fieldName=='modifiedTime'|| field.fieldName=='version'>
<#else>

    /**
     * ${field.remark}
     */
</#if>
<#if field.fieldName ?? &&  field.fieldName=='deleted'>
    //@TableField(value = "deleted", fill = FieldFill.INSERT) //逻辑删除
    //@TableLogic(value = "0", delval = "1") //逻辑删除
</#if>
<#if field.fieldName=='id' || field.fieldName=='createdBy'|| field.fieldName=='createdTime'|| field.fieldName=='modifiedBy'|| field.fieldName=='modifiedTime'|| field.fieldName=='version'>
<#else>
    @TableField(value = "${field.columnName}")
    private ${field.shortTypeName} ${field.fieldName};
</#if>
</#list>

}